import request from "@/utils/request.js";

export const getRecord = (id,decision) => {
    return request.get('/commonProcess/getRecord', {
        params: {
            id:id,
            decision:decision
        }
    });
};
export const setApproval = (id,instanceId,decision,comment) => {
    const requestBody = {
        id,
        instanceId,
        decision,
        comment
    };
    return request.put('/commonProcess/setApproval', requestBody);
};
export const retrieveApproval = (id) => {
    const formData = new FormData();
    formData.append('id', id);
    return request.patch('/commonProcess/retrieveApproval',formData)
};



